<?php
namespace Home\Controller;
use Think\Controller;

class AuthController extends Controller{
	public $Auth;
	
	function __construct(){
		parent::__construct();
		$this->Auth = D('Auth');
	}
	
	function getUserGroup(){
		dump($this->Auth->getUserGroup());
	}
	function addUserGroup(){
		dump($this->Auth->addUserGroup(3,1));
	}
	function newAuth(){
		dump($this->Auth->newAuth('Home/User/rePwd','用户登录','Home'));
	}
	function doAuth(){
		echo doAuth("Home/User/toSignUp",3);
	}
	
	function reAuth(){
		echo $this->Auth->reAuth(1,"1,2,3,4");
	}
}
